
// MIT License
// 
// Copyright (c) 2009-2017 Luca Piccioni
// 
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
// 
// The above copyright notice and this permission notice shall be included in all
// copies or substantial portions of the Software.
// 
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.
// 
// This file is automatically generated

#pragma warning disable 649, 1572, 1573

// ReSharper disable RedundantUsingDirective
using System;
using System.Diagnostics;
using System.Runtime.InteropServices;
using System.Security;
using System.Text;

using Khronos;

// ReSharper disable CheckNamespace
// ReSharper disable InconsistentNaming
// ReSharper disable JoinDeclarationAndInitializer

namespace OpenGL
{
	public partial class Gl
	{
		/// <summary>
		/// [GL] glClipPlanefOES: Binding for glClipPlanefOES.
		/// </summary>
		/// <param name="plane">
		/// A <see cref="T:ClipPlaneName"/>.
		/// </param>
		/// <param name="equation">
		/// A <see cref="T:float[]"/>.
		/// </param>
		[RequiredByFeature("GL_OES_single_precision", Api = "gl|gles1")]
		public static void ClipPlaneOES(ClipPlaneName plane, float[] equation)
		{
			Debug.Assert(equation.Length >= 4);
			unsafe {
				fixed (float* p_equation = equation)
				{
					Debug.Assert(Delegates.pglClipPlanefOES != null, "pglClipPlanefOES not implemented");
					Delegates.pglClipPlanefOES((int)plane, p_equation);
					LogCommand("glClipPlanefOES", null, plane, equation					);
				}
			}
			DebugCheckErrors(null);
		}

		/// <summary>
		/// [GL] glFrustumfOES: Binding for glFrustumfOES.
		/// </summary>
		/// <param name="l">
		/// A <see cref="T:float"/>.
		/// </param>
		/// <param name="r">
		/// A <see cref="T:float"/>.
		/// </param>
		/// <param name="b">
		/// A <see cref="T:float"/>.
		/// </param>
		/// <param name="t">
		/// A <see cref="T:float"/>.
		/// </param>
		/// <param name="n">
		/// A <see cref="T:float"/>.
		/// </param>
		/// <param name="f">
		/// A <see cref="T:float"/>.
		/// </param>
		[RequiredByFeature("GL_OES_single_precision", Api = "gl|gles1")]
		public static void FrustumOES(float l, float r, float b, float t, float n, float f)
		{
			Debug.Assert(Delegates.pglFrustumfOES != null, "pglFrustumfOES not implemented");
			Delegates.pglFrustumfOES(l, r, b, t, n, f);
			LogCommand("glFrustumfOES", null, l, r, b, t, n, f			);
			DebugCheckErrors(null);
		}

		/// <summary>
		/// [GL] glGetClipPlanefOES: Binding for glGetClipPlanefOES.
		/// </summary>
		/// <param name="plane">
		/// A <see cref="T:ClipPlaneName"/>.
		/// </param>
		/// <param name="equation">
		/// A <see cref="T:float[]"/>.
		/// </param>
		[RequiredByFeature("GL_OES_single_precision", Api = "gl|gles1")]
		public static void GetClipPlaneOES(ClipPlaneName plane, [Out] float[] equation)
		{
			Debug.Assert(equation.Length >= 4);
			unsafe {
				fixed (float* p_equation = equation)
				{
					Debug.Assert(Delegates.pglGetClipPlanefOES != null, "pglGetClipPlanefOES not implemented");
					Delegates.pglGetClipPlanefOES((int)plane, p_equation);
					LogCommand("glGetClipPlanefOES", null, plane, equation					);
				}
			}
			DebugCheckErrors(null);
		}

		/// <summary>
		/// [GL] glOrthofOES: Binding for glOrthofOES.
		/// </summary>
		/// <param name="l">
		/// A <see cref="T:float"/>.
		/// </param>
		/// <param name="r">
		/// A <see cref="T:float"/>.
		/// </param>
		/// <param name="b">
		/// A <see cref="T:float"/>.
		/// </param>
		/// <param name="t">
		/// A <see cref="T:float"/>.
		/// </param>
		/// <param name="n">
		/// A <see cref="T:float"/>.
		/// </param>
		/// <param name="f">
		/// A <see cref="T:float"/>.
		/// </param>
		[RequiredByFeature("GL_OES_single_precision", Api = "gl|gles1")]
		public static void OrthoOES(float l, float r, float b, float t, float n, float f)
		{
			Debug.Assert(Delegates.pglOrthofOES != null, "pglOrthofOES not implemented");
			Delegates.pglOrthofOES(l, r, b, t, n, f);
			LogCommand("glOrthofOES", null, l, r, b, t, n, f			);
			DebugCheckErrors(null);
		}

		internal static unsafe partial class Delegates
		{
			[RequiredByFeature("GL_OES_single_precision", Api = "gl|gles1")]
			[SuppressUnmanagedCodeSecurity]
			internal delegate void glClipPlanefOES(int plane, float* equation);

			[RequiredByFeature("GL_OES_single_precision", Api = "gl|gles1")]
			[ThreadStatic]
			internal static glClipPlanefOES pglClipPlanefOES;

			[RequiredByFeature("GL_OES_single_precision", Api = "gl|gles1")]
			[SuppressUnmanagedCodeSecurity]
			internal delegate void glFrustumfOES(float l, float r, float b, float t, float n, float f);

			[RequiredByFeature("GL_OES_single_precision", Api = "gl|gles1")]
			[ThreadStatic]
			internal static glFrustumfOES pglFrustumfOES;

			[RequiredByFeature("GL_OES_single_precision", Api = "gl|gles1")]
			[SuppressUnmanagedCodeSecurity]
			internal delegate void glGetClipPlanefOES(int plane, float* equation);

			[RequiredByFeature("GL_OES_single_precision", Api = "gl|gles1")]
			[ThreadStatic]
			internal static glGetClipPlanefOES pglGetClipPlanefOES;

			[RequiredByFeature("GL_OES_single_precision", Api = "gl|gles1")]
			[SuppressUnmanagedCodeSecurity]
			internal delegate void glOrthofOES(float l, float r, float b, float t, float n, float f);

			[RequiredByFeature("GL_OES_single_precision", Api = "gl|gles1")]
			[ThreadStatic]
			internal static glOrthofOES pglOrthofOES;

		}
	}

}
